package com.hc.model.code02.test3;


/**
 * @version v1.0
 * @ClassName: SingletonTest
 * @Description: 测试锁构建对象
 * @Author: HC
 */
public class SingletonTest {

    public static void main(String[] args) {
        Singleton singleton1 = Singleton.getInstance();
        Singleton singleton2 = Singleton.getInstance();
        System.out.println(singleton1 == singleton2);
    }
}
